package com.otaku.admin.exception;

import com.otaku.admin.util.ResultEnum;

/**
 * 参数校验异常
 */
public class CheckParamsException extends RuntimeException {
    private String code;
    private String msg;
    private ResultEnum resultEnum;

    public CheckParamsException() {
    }

    public CheckParamsException(ResultEnum resultEnum) {
        this.resultEnum = resultEnum;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultEnum getResultEnum() {
        return resultEnum;
    }

    public void setResultEnum(ResultEnum resultEnum) {
        this.resultEnum = resultEnum;
    }
}
